package cn.ym.ymcc.dto;

import cn.ym.ymcc.domain.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseDto {
    private Long id;
    @Valid
    private Course course;
    @Valid
    private CourseDetail courseDetail;
    @Valid
    private CourseMarket courseMarket;
    private CourseResource courseResource;
    @NotEmpty(message = "老师必须")
    private List<Long> teacherIds;
}
